<%--
  Created by IntelliJ IDEA.
  User: liliting
  Date: 2021/1/19
  Time: 上午11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品信息</title>
</head>
<body>
    <table cellpadding="1" cellspacing="1">
        <tr>
            <td>编号</td>
            <td>名称</td>
            <td>价格</td>
            <td>数量</td>
        </tr>

        <c:forEach var="item" items="${tbItems}">
            <tr>
                <td>${item.id}</td>
                <td>${item.title}</td>
                <td>${item.price}</td>
                <td>${item.num}</td>
            </tr>
        </c:forEach>

    </table>

</body>
</html>
